package com.zzyl.service.impl;

import com.zzyl.entity.ProjectPlan;
import com.zzyl.mapper.NursingProjectPlanMapper;
import com.zzyl.service.NursingProjectPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NursingProjectPlanServiceImpl implements NursingProjectPlanService {
    @Autowired
    private NursingProjectPlanMapper nursingProjectPlanMapper;
    /**
     * 根据护理计划删除关联关系
     *
     * @param id 护理计划id
     */
    @Override
    public void deleteByNursingPlanId(Long nursingPlanId) {
        nursingProjectPlanMapper.deleteByNursingPlanId(nursingPlanId);
    }

    @Override
    public void add(ProjectPlan projectPlan) {
        nursingProjectPlanMapper.add(projectPlan);
    }
}
